#!/bin/bash

echo $(ps -eo pid,comm | grep tpcsrv | grep -v grep )
echo $(ps -eo pid,comm | grep sdbcrun | grep -v grep )

sleep 1

TPCSRV_PID=$(ps -eo pid,comm | grep tpcsrv | grep -v grep | grep -o '[0-9]\+')

echo "----------------------------------------"

# Monitor进程存在
if [ ${TPCSRV_PID} ] ; then
	top -p ${TPCSRV_PID}
else
	nohup /home/sdbc/bin/sdbcrun.sh &
fi


